var mongoose = require('../utils/mongoose');
const Schema = mongoose.Schema;

// 定义用户表Schema信息
var UserSchema = new Schema({
  account: { type: String },
  password: { type: String },
  role: { type: Number },
  name: { type: String },
  phone: { type: String },
  company: { type: String },
  address: { type: String }
});

module.exports = mongoose.model('User', UserSchema);